package bookManage;

import java.util.ArrayList;
import java.util.Calendar;

import po.Book;

public class BookManage_Stub implements BookManageBLService {

	public Book book;

	public BookManage_Stub(Book book) {
		super();
		this.book = book;
	}

	public boolean login(String name, String password) {

		if (name.equals("admin") && password.equals("admin")) {
			System.out.println("Login Succeed!");
			return true;
		}
		System.out.println("Login Fail!");
		return false;
	}

	public Book getBookByISBN(String isbn) {
		System.out.println("Get Succeed!");
		return book;
	}

	public void modifyBookInfo(String bookName, String iSBN, String author,
			Calendar publishTime, String publisher, long stock,
			String category, String description) {

		System.out.println("Modify succeed!");
	}

	public void deleteBook(String isbn) {

		System.out.println("Delete Succeed!");
	}

	public void addBook(Book book) {

		System.out.println("Add Book Succeed!");
	}

	public Book getBookByName(String name) {
		System.out.println("Get Succeed!");
		return null;
	}

	public ArrayList<Book> getBookByPress(String Press) {
		System.out.println("Get Succeed!");

		return null;
	}

}
